package com.jaws.demo.vo;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 开户请求对象
 *
 * @author maojian
 * @date 2017-05-27 16:57:13
 * @since v1.0.0
 */
@SuppressWarnings("serial")
@Data
public class OpenAccountReq implements Serializable {

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID", required = true)
	@NotBlank(message = "userId不能为空")
	private String userId;

	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value = "用户姓名", required = true)
	@NotBlank(message = "userName不能为空")
	private String userName;

	/**
	 * 账户类型
	 */
	@ApiModelProperty(value = "账户类型", required = true)
	@NotNull(message = "accountType不能为空")
	private AccountTypeEnum accountType;


	/**
	 * 存管账户号
	 */
	@ApiModelProperty(value = "存管账户号", required = true)
	@NotBlank(message = "depositAccountNo不能为空")
	private String depositAccountNo;


	/**
	 * 登录密码
	 */
	@ApiModelProperty(value = "登录密码", required = false)
	private String loginPwd;


	/**
	 * 提现密码
	 */
	@ApiModelProperty(value = "提现密码", required = false)
	private String drawPwd;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注", required = false)
	private String remark;


	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}
